FROM openjdk:8-jdk
MAINTAINER dcy "1540770111@qq.com"
COPY target/dcy-api-gateway.jar /app.jar
RUN sh -c 'touch /app.jar'
VOLUME /tmp
EXPOSE 9001
ENV JAVA_OPTS=""
# 修改spring环境变量
#ENV JAVA_OPTS="-Dspring.profiles.active=prod"
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]